import 'package:flutter/material.dart';

class Screen1 extends StatelessWidget {

  @override
 Widget build(BuildContext context){
    return MaterialApp(
      title: '这是我在做的flutter',
      home: Scaffold(
        appBar: new AppBar(
          title: new Text('this is Dome'),
        ),
        body:Center(
          child:Container(
            child:Column(
              children: <Widget>[
                  new Text(
            '这里是我内容中心页面，  这里可以很长很长很长long这里是我内容中心页面，这里可以很长很长很长long这里是我内容中心页面，这里可以很长很长很长long',
            textAlign: TextAlign.left,
            maxLines: 2,
            overflow: TextOverflow.ellipsis,
            style: TextStyle(
              fontSize: 20.0,
              color: Color.fromRGBO(0, 124, 113, 1),
              decoration: TextDecoration.lineThrough,
              decorationStyle: TextDecorationStyle.dashed,
            ),
            ),
            new Text('下面是图片'),
            new Image.network(
              'http://www.pptbz.com/pptpic/UploadFiles_6909/201203/2012031220134655.jpg',
              scale: 1.0,
              repeat:ImageRepeat.noRepeat
            ),
              ],
            ),
            
            alignment: Alignment.topCenter,
            // color: Colors.cyanAccent,与背景渐变色冲突
            margin: EdgeInsets.only(top:24.0),
            padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
            decoration: new BoxDecoration(
              gradient: const LinearGradient(
                colors: [Colors.lightBlue,Colors.lightGreen]//边框渐变色
              ),
              border: Border.all(width:2.0,color: Color.fromRGBO(0, 124, 113, 1))//边框宽度. 颜色
            ),
          ),

        ),
      ),
    );
  }

}